// 页面
import {
  SplashScreen,
  MainScreen,
  MineBetRecordScreen,
  MineBetRecordDetailScreen,
  LoginScreen,
  EventListScreen,
  EventDetailScreen,
  SecurityCenterScreen,
  Rechargeable,
  AboutUsScreen,
  VipScreen
} from "../screens"
// 路由常量
import routerId from "consts/routerId"
import fundRoute from "screens/fund-center/router"

const routes = [
  ...fundRoute,
  {
    path: routerId.login,
    component: LoginScreen
  },
  {
    path: routerId.mineBetRecord,
    component: MineBetRecordScreen
  },
  {
    path: routerId.mineBetRecordDetailScreen,
    component: MineBetRecordDetailScreen
  },
  {
    path: routerId.aboutUs,
    component: AboutUsScreen
  },
  {
    path: routerId.securityCenter,
    component: SecurityCenterScreen
  },
  {
    path: routerId.vip,
    component: VipScreen
  },
  {
    path: routerId.eventList,
    component: EventListScreen
  },
  {
    path: routerId.eventDetail,
    component: EventDetailScreen
  },
  {
    path: routerId.rechargeable,
    name: "充值",
    component: Rechargeable
  },
  {
    path: routerId.home,
    component: MainScreen
  },
  {
    path: routerId.root,
    component: SplashScreen
  }
]

export default routes
